// AutoCreateCSVDlg.h : header file
//

#if !defined(AFX_AUTOCREATECSVDLG_H__B8247ECE_DD7A_4A29_920C_E8765AAF7673__INCLUDED_)
#define AFX_AUTOCREATECSVDLG_H__B8247ECE_DD7A_4A29_920C_E8765AAF7673__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CAutoCreateCSVDlg dialog

class CAutoCreateCSVDlg : public CDialog
{
// Construction
public:
	CAutoCreateCSVDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CAutoCreateCSVDlg)
	enum { IDD = IDD_AUTOCREATECSV_DIALOG };
	CString	m_strBrand;
	CString	m_strCreateName;
	int		m_nCreateNO;
	CString	m_strDesc;
	int		m_nHuoStart;
	int		m_nPicStart;
	CString	m_strProductName;
	BOOL	m_ChkXP;
	BOOL	m_ChkYS;
	BOOL	m_ChkJP;
	int		m_nPrice;
	int		m_nProductStart;
	int		m_nKuNO;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAutoCreateCSVDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CAutoCreateCSVDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnOK();
	afx_msg void OnBtnDebug();
	afx_msg void OnDestroy();
	afx_msg void OnBtnPrestashop();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	BOOL m_bOpenDos;
	CString m_strIniName;
	void ReadConfig(const char * filename);
	void WriteConfig(const char * filename);
	BOOL IsFileExists(CString filename);
	BOOL CheckInputValidate();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_AUTOCREATECSVDLG_H__B8247ECE_DD7A_4A29_920C_E8765AAF7673__INCLUDED_)
